package com.lizard.schedule.utils;

import android.widget.Toast;

import com.lizard.schedule.ScheduleApplication;
import com.lizard.schedule.widget.ScheduleToast;

/**
 * Toast工具类
 */
public class ToastUtil{

    /**
     * 显示Toast(时间短)
     *
     * @param msg
     */
    public static void showToastS(String msg){
        Toast.makeText(ScheduleApplication.applicationContext,msg,Toast.LENGTH_SHORT).show();
    }

    /**
     * 显示Toast(时间短)
     *
     * @param resId
     */
    public static void showToastS(int resId){
        Toast.makeText(ScheduleApplication.applicationContext,resId,Toast.LENGTH_SHORT).show();
    }

    /**
     * 显示Toast(时间长)
     *
     * @param msg
     */
    public static void showToastL(String msg){
        Toast.makeText(ScheduleApplication.applicationContext, msg, Toast.LENGTH_LONG).show();
    }

    /**
     * 显示Toast(时间长)
     *
     * @param resId
     */
    public static void showToastL(int resId){
        Toast.makeText(ScheduleApplication.applicationContext, resId, Toast.LENGTH_LONG).show();
    }

    /**
     * 显示ScheduleToast(时间短)
     *
     * @param msg
     */
    public static void showScheduleToastS(String msg){
        ScheduleToast.makeScheduleToastS(msg).show();
    }

    /**
     * 显示ScheduleToast(时间短)
     *
     * @param resId
     */
    public static void showScheduleToastS(int resId){
        ScheduleToast.makeScheduleToastS(resId).show();
    }

    /**
     * 显示ScheduleToast(时间长)
     *
     * @param msg
     */
    public static void showScheduleToastL(String msg){
        ScheduleToast.makeScheduleToastL(msg).show();
    }

    /**
     * 显示ScheduleToast(时间长)
     *
     * @param resId
     */
    public static void showScheduleToastL(int resId){
        ScheduleToast.makeScheduleToastL(resId).show();
    }

}
